class AddTestData < ActiveRecord::Migration
  def self.up
    Product.create(:title => "Pragmatic book",
    :description => "very very good",
    :image_url => '/images/svn.jpg',
    :price => 23.12,
    :name => "this is name")

    Product.create(:title => "Pragmatic book 2",
    :description => "very very very good",
    :image_url => '/images/cvs.jpg',
    :price => 123.98,
    :name => "this is name 2")
  end

  def self.down
    Product.delete_all 
  end
end
